package com.help.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2022/6/15 14:45
 */
@ApiModel(value = "helpapp.feedback")
@Data
@AllArgsConstructor
@TableName(value = "helpapp.feedback")
public class Feedback implements Serializable {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "")
    private Integer id;

    @TableField(value = "nickName")
    @ApiModelProperty(value = "")
    private String nickname;

    @TableField(value = "phone")
    @ApiModelProperty(value = "")
    private String phone;

    @TableField(value = "content")
    @ApiModelProperty(value = "")
    private String content;

    @TableField(fill = FieldFill.INSERT,value = "create_time")
    @ApiModelProperty(value = "")
    private Date createTime;

    public Feedback(FeedbackPojo feedbackPojo ){
        this.nickname=feedbackPojo.getNickname();
        this.phone=feedbackPojo.getPhone();
        this.content=feedbackPojo.getContent();
    }

    private static final long serialVersionUID = 1L;
}